function pobierz()
{
  url = "http://localhost/dane.php";
  startGETRequest(url, onComplete, onEnd);
}

function onComplete(responseText, responseXML)
{
  var mainNode = responseXML.documentElement;
  var nodes = mainNode.getElementsByTagName("imie");
  str = "";
  for(i = 0; i < nodes.length; i++){
    str += nodes[i].firstChild.nodeValue;
    str += "<br>";
  }
  str = "Odczytane imiona:<br>" + str;
  var div = document.getElementById("dataDiv");
  div.innerHTML = str;
}

function onEnd()
{
}
